package com.qwfys.sample.jackson.model;

public class Field {
    private String name;

    private String caption;

    private String type;

    private String formControl;

    private boolean required;

    private String requiredMsg;

    public Field(String name, String caption, String type, String formControl, boolean required, String requiredMsg) {
        this.name = name;
        this.caption = caption;
        this.type = type;
        this.formControl = formControl;
        this.required = required;
        this.requiredMsg = requiredMsg;
    }

    public Field() {

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCaption() {
        return caption;
    }

    public void setCaption(String caption) {
        this.caption = caption;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getFormControl() {
        return formControl;
    }

    public void setFormControl(String formControl) {
        this.formControl = formControl;
    }

    public boolean isRequired() {
        return required;
    }

    public void setRequired(boolean required) {
        this.required = required;
    }

    public String getRequiredMsg() {
        return requiredMsg;
    }

    public void setRequiredMsg(String requiredMsg) {
        this.requiredMsg = requiredMsg;
    }

}
